package com.bg.print.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-03-25 17:50:46
 */
@Data
@TableName(value = "t_user")
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;
    /**
     * 权限
     */
    @Schema(description = "权限")
    private String permissions;
    /**
     * 账户
     */
    @Schema(description = "账户")
    private String account;
    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;
    /**
     * wxid
     */
    @Schema(description = "wxid")
    private String wxId;
    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String phone;
    /**
     * 删除(1删除，0启用)
     */
    @Schema(description = "删除(1删除，0启用)")
    private Integer enabled;
}
